home *** CD-ROM | disk | FTP | other *** search
- /* dotAt.c generated from dotAt.psw
- by unix pswrap V1.009 Wed Apr 19 17:50:24 PDT 1989
- */
-
- #include <dpsclient/dpsfriends.h>
- #include <string.h>
-
- #line 1 "dotAt.psw"
- #line 10 "dotAt.c"
- void dotAt(float mkcpath[], int ntotal, int mygstate)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjGeneric obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjGeneric obj5;
- DPSBinObjGeneric obj6;
- DPSBinObjGeneric obj7;
- DPSBinObjGeneric obj8;
- DPSBinObjGeneric obj9;
- DPSBinObjGeneric obj10;
- DPSBinObjGeneric obj11;
- DPSBinObjGeneric obj12;
- DPSBinObjGeneric obj13;
- DPSBinObjGeneric obj14;
- DPSBinObjGeneric obj15;
- DPSBinObjGeneric obj16;
- DPSBinObjGeneric obj17;
- DPSBinObjGeneric obj18;
- DPSBinObjGeneric obj19;
- DPSBinObjGeneric obj20;
- DPSBinObjGeneric obj21;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 10, 180,
- {DPS_LITERAL|DPS_ARRAY, 0, 0, 176}, /* param[var]: mkcpath */
- {DPS_EXEC|DPS_ARRAY, 0, 0, 176},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 73}, /* forall */
- {DPS_LITERAL|DPS_INT, 0, 0, 1},
- {DPS_LITERAL|DPS_INT, 0, 0, 1},
- {DPS_LITERAL|DPS_INT, 0, 0, 0}, /* param: ntotal */
- {DPS_LITERAL|DPS_INT, 0, 0, 2},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 54}, /* div */
- {DPS_EXEC|DPS_ARRAY, 0, 12, 80},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 72}, /* for */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 117}, /* pop */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_LITERAL|DPS_INT, 0, 0, 5},
- {DPS_LITERAL|DPS_INT, 0, 0, 5},
- {DPS_LITERAL|DPS_INT, 0, 0, 0}, /* param: mygstate */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 212}, /* execuserobject */
- {DPS_LITERAL|DPS_INT, 0, 0, 7},
- {DPS_LITERAL|DPS_INT, 0, 0, -2},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 135}, /* roll */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* PlusD */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* composite */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- static long int _dpsCodes[2] = {-1};
- register int _dps_offset = 176;
- {
- if (_dpsCodes[0] < 0) {
- static const char * const _dps_names[] = {
- "PlusD",
- "composite"};
- long int *_dps_nameVals[2];
- _dps_nameVals[0] = &_dpsCodes[0];
- _dps_nameVals[1] = &_dpsCodes[1];
-
- DPSMapNames(_dpsCurCtxt, 2, _dps_names, _dps_nameVals);
- }
- }
-
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].length = ntotal;
- _dpsP[5].val.integerVal = ntotal;
- _dpsP[15].val.integerVal = mygstate;
- _dpsP[20].val.nameVal = _dpsCodes[0];
- _dpsP[21].val.nameVal = _dpsCodes[1];
- _dpsP[0].val.arrayVal = _dps_offset;
- _dps_offset += ntotal * sizeof(DPSBinObjGeneric);
-
- _dpsF.nBytes = _dps_offset+4;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,180);
- DPSWriteTypedObjectArray(_dpsCurCtxt, dps_tFloat, (char *)mkcpath, ntotal);
- }
- #line 9 "dotAt.psw"
-
- #line 100 "dotAt.c"
- void dotAtPSonly(float mkcpath[], int ntotal, float radius, float shade)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjGeneric obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjGeneric obj5;
- DPSBinObjGeneric obj6;
- DPSBinObjGeneric obj7;
- DPSBinObjGeneric obj8;
- DPSBinObjGeneric obj9;
- DPSBinObjGeneric obj10;
- DPSBinObjGeneric obj11;
- DPSBinObjReal obj12;
- DPSBinObjGeneric obj13;
- DPSBinObjGeneric obj14;
- DPSBinObjGeneric obj15;
- DPSBinObjReal obj16;
- DPSBinObjGeneric obj17;
- DPSBinObjGeneric obj18;
- DPSBinObjGeneric obj19;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 10, 164,
- {DPS_LITERAL|DPS_ARRAY, 0, 0, 160}, /* param[var]: mkcpath */
- {DPS_EXEC|DPS_ARRAY, 0, 0, 160},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 73}, /* forall */
- {DPS_LITERAL|DPS_INT, 0, 0, 1},
- {DPS_LITERAL|DPS_INT, 0, 0, 1},
- {DPS_LITERAL|DPS_INT, 0, 0, 0}, /* param: ntotal */
- {DPS_LITERAL|DPS_INT, 0, 0, 2},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 54}, /* div */
- {DPS_EXEC|DPS_ARRAY, 0, 10, 80},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 72}, /* for */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 117}, /* pop */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 111}, /* newpath */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: radius */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_LITERAL|DPS_INT, 0, 0, 360},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 5}, /* arc */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: shade */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 66}, /* fill */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 167}, /* stroke */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- register int _dps_offset = 160;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].length = ntotal;
- _dpsP[5].val.integerVal = ntotal;
- _dpsP[12].val.realVal = radius;
- _dpsP[16].val.realVal = shade;
- _dpsP[0].val.arrayVal = _dps_offset;
- _dps_offset += ntotal * sizeof(DPSBinObjGeneric);
-
- _dpsF.nBytes = _dps_offset+4;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,164);
- DPSWriteTypedObjectArray(_dpsCurCtxt, dps_tFloat, (char *)mkcpath, ntotal);
- }
- #line 19 "dotAt.psw"
-